package com.gt.web.controller.app;

import com.gt.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.gt.app.service.EsCancerTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * <p>
 * 癌病类型表 前端控制器
 * </p>
 *
 * @author caidesheng
 */
@Slf4j
@RestController
@RequestMapping("esCancerType")
@Api(tags = "癌病类型接口")
public class EsCancerTypeController {

    @Autowired
    private EsCancerTypeService  esCancerTypeService;

    @ApiOperation(value = "获取癌病类型列表")
    @GetMapping(value = "getCancer")
    public AjaxResult getCancer() {
        return AjaxResult.success(esCancerTypeService.list());
    }

}
